//
//  BindCardMsgCell.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/29.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "BindCardMsgCell.h"

@implementation BindCardMsgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    BindCardMsgCell *cell = [tableView dequeueReusableCellWithIdentifier:BINDCARDMSGCELL];
    if (!cell) {
        cell = [[BindCardMsgCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:BINDCARDMSGCELL];
    }
    [cell setupCell];
    return cell;
}

- (IBAction)msgTextChanged:(id)sender {
    [[NSNotificationCenter defaultCenter] postNotificationName:@"textChangeNotification" object:self];
}

- (void)setupCell {
    _msgButton.layer.cornerRadius = BTN_RADIUS;
    _msgButton.layer.masksToBounds = YES;
    _msgButton.layer.borderWidth = 1;
    _msgButton.layer.borderColor = BLUE_COLOR.CGColor;
}

@end
